From: Florian Müllner Date: Tue, 18 Jan 2022 20:11:36 +0000 (+0100) Subject: lint: Partially sync with gjs X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~237 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1fe79a331f44457e16b964c542cf6e72a0310211;p=gnome-shell.git lint: Partially sync with gjs As in commit bf5129adc1, leave out putting the Formats module on the verboten list. Part-of: --- diff --git a/lint/eslintrc-gjs.yml b/lint/eslintrc-gjs.yml index ba6c51031..62fd4a2dd 100644 --- a/lint/eslintrc-gjs.yml +++ b/lint/eslintrc-gjs.yml @@ -2,8 +2,7 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later # SPDX-FileCopyrightText: 2018 Claudio André env: - es6: true - es2020: true + es2021: true extends: 'eslint:recommended' plugins: - jsdoc @@ -86,7 +85,10 @@ rules: linebreak-style: - error - unix - lines-between-class-members: error + lines-between-class-members: + - error + - always + - exceptAfterSingleLine: true max-nested-callbacks: error max-statements-per-line: error new-parens: error @@ -253,5 +255,10 @@ globals: window: readonly TextEncoder: readonly TextDecoder: readonly + console: readonly + setTimeout: readonly + setInterval: readonly + clearTimeout: readonly + clearInterval: readonly parserOptions: - ecmaVersion: 2020 + ecmaVersion: 2022